# coding:utf-8
# Created by yang

import xlsxwriter


def write(workbook_name,data_sorce,worksheet="sheet1"):
    workbook = xlsxwriter.Workbook(workbook_name)
    worksheet = workbook.add_worksheet(worksheet)

    for index,row_data in enumerate(data_sorce):
        worksheet.write_row(data_sorce,0,row_data)

    workbook.close()

if __name__ == '__main__':
    write("hello.xlsx")




